package org.dromara.llm.domain;

import lombok.Data;

import java.text.SimpleDateFormat;
import java.util.Date;

@Data
public class replyDTO {

    //消息类型
    private String type;

    //数据
    private Object data;

    //时间
    private String time;


    //状态码
    private Integer code;

    public replyDTO(String type, Object data) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        this.time = sdf.format(new Date());
        this.type = type;
        this.data = data;
        this.code = 200;
    }
}
